﻿//-----------------------------------------------------------------------
// <copyright file="ServiceCollectionExtensions.cs" company="SLWY Enterprises">
// * Copyright (C) 2017 四川商旅无忧科技有限公司 版权所有。
// * version : 1.0
// * author  : qinchaoyue
// * FileName: ServiceCollectionExtensions.cs
// * history : created by qinchaoyue 2017-10-22 09:39:01
// </copyright>
//-----------------------------------------------------------------------

using Slwy.MySql.Contracts;
using Slwy.MySql.Implements;

namespace Slwy.MySql
{
    using Microsoft.Extensions.DependencyInjection;

    public static class ServiceCollectionExtensions
    {
        public static void AddMySqlService(this IServiceCollection services)
        {
            services.AddScoped<IMySqlConnection, MySqlConnection>();
        }
    }
}
